﻿@using Microsoft.Ajax.Utilities
@model prav.Models.PostsLentaViewModel


@*<iframe src="http://www.youtube.com/embed/4HLlck2iBD4" width="400" height="300"></iframe>
<br/>
<iframe src="http://vkontakte.ru/video_ext.php?oid=1042154&id=150095589"
        width="607" height="360" frameborder="0"></iframe>
<iframe src="http://vk.com/video_ext.php?oid=203301268&id=168486695&hash=f8f6a4b5c3979a3b&hd=1" width="400" height="300"></iframe>
<br/>*@

<p><a href="@Url.Action("New", "Lenta")" class="btn btn-primary btn-large">Написать +</a></p>

<br/><br />

@foreach (var post in Model.Posts)
{
    <div class="postShow">
        <div class="authorStyle">
            <b>@post.Author.UserName</b>
        </div>
        <div style="float: left">
            <div>
                @Html.ActionLink(@post.Header, "ShowPost" + "/" + post.Id, "Lenta", new { @class = "postHeader" })
            </div>
            <div class="bodyStyle">@post.Body</div>
        </div>
    </div>
}

